<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>填写地址</title>
    <link rel="stylesheet" href="../css/common.css">
    <link rel="stylesheet" href="../css/page.css">
    <script src="../js/jquery-3.2.1.min.js"></script>
    <script src="../js/media.js"></script>
    <script src="../js/common.js"></script>
    <style>

    </style>
</head>

<body>
    <!--头部-->
    <div class="public-header flex">
        <!--<span class="public-header-left-search"></span>-->
        <span class="public-header-left-back"></span>
        <span class="public-header-center">填写地址</span>
        <span class="public-header-right">发货</span>
    </div>

    <!--正文-->
    <div class="Fill-in-the-address bc-gray">
        <ul>
            <li>
                <span>快递单号</span>
                <input type="text" placeholder="请输入快递单号">
            </li>
        </ul>
    </div>


  


    <script>
        $(function () {
            let order_id = getQueryString('order_id');

            $('.public-header-right').click(function () {
                $.ajax({
                    url: base_url + 'ZITAOHUI/user/ship',
                    data: {
                        orderid: order_id,
                        trackNum: $('input').val()
                    },
                    success: function (data) {
                        console.log(data)
                        if(data.msg == "处理成功"){
                            window.location.href = '../page/Seller-order.html'
                        }
                    }
                })
            })
        })
    </script>
</body>

</html>